
using System.Diagnostics;
using Lucene.Net.Store;
using NUnit.Framework;

namespace CS2.Tests
{
    [TestFixture]
    public class RamDirectoryTests : BaseTest
    {
        [Test]
        public CanResolve() : void
        {
            def dir = container.Resolve.[Directory]("RamDirectory");

            Debug.WriteLine(dir.GetType());

            Assert.IsNotNull(dir);
        }

        [Test]
        public SameInstance() : void
        {
            def dir1 = container.Resolve.[Directory]("RamDirectory");
            def dir2 = container.Resolve.[Directory]("RamDirectory");
           
            Assert.AreSame(dir1, dir2);
        }
    }
}